PREFIX = /usr/local
INCLUDES = -I../UsageEnvironment/include -I../groupsock/include -I../liveMedia/include -I../BasicUsageEnvironment/include
# Default library filename suffixes for each library that we link with.  The "config.*" file might redefine these later.
libliveMedia_LIB_SUFFIX = $(LIB_SUFFIX)
libBasicUsageEnvironment_LIB_SUFFIX = $(LIB_SUFFIX)
libUsageEnvironment_LIB_SUFFIX = $(LIB_SUFFIX)
libgroupsock_LIB_SUFFIX = $(LIB_SUFFIX)
##### Change the following for your environment:
COMPILE_OPTS = $(INCLUDES) -I/usr/local/include -I. -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
C = c
C_COMPILER = g++
C_FLAGS = $(COMPILE_OPTS) $(CPPFLAGS) $(CFLAGS)

# 列出所有要编译的源文件
SRCS = $(wildcard *.c)
# 将 .c 文件替换为对应的 .o 文件
OBJS = $(SRCS:.c=.o)

# 默认目标：编译所有的 .c 文件生成对应的 .o 文件
all: $(OBJS)

# 定义编译 .c 文件生成 .o 文件的规则
%.o: %.c
	$(C_COMPILER) -c $(C_FLAGS) $< -o $@
